<?php 
 header("Content-type:text/html;charset=utf-8");
 $schools = array();
 $schools = array('大连东软信息学院','东财','理工' );
 $schools[3] = '大连海洋大学';
 $schools[] = '东北财经大学';
  // var_dump($schools);
// 遍历指标数组
/*for( $i=0 ; $i<count($schools) ; $i++ )
{
	echo $i+1;
	echo ' ';
	echo $schools[$i];
	echo '<br>';
}
 foreach ($schools as $one) 
 {
 	echo $one;
 	echo '<br>';
 }
 foreach ($schools as $index => $one) 
 {
 	echo $index+1;
 	echo ' '.$one.'<br>';
 	
 }*/

//关联数组
  $neusoft = array('xxdm' =>1111 , 'xxmc' => '大连东软信息学院' ,
 	'dlwz' => '软件园8号' , 'bmlb' => array('计算机系','日语系','英语系') );
 $dlut = array('xxdm' =>1112 ,'xxmc' => '大连理工大学' ,'dlwz' => '软件园8号' );
 	
   
   /*var_dump($neusoft);
   var_dump($dlut);
   echo $dlut['xxmc'];*/

   $universities = array($neusoft , $dlut );

   //$universities[]=$neusoft;
   //$universities[]=$dlut;
   //var_dump($neusoft);
   //var_dump($dlut);

 /*foreach ($universities as $one )
 {
 	echo $one['xxdm']. $one['xxmc'] . $one['dlwz'];
 	echo '<br> ';
 }*/

$universities2 = array('neusoft'=>$neusoft, 'dlut'=>$dlut);
//var_dump($universities2);

foreach ($universities2 as $key => $one) {
    
    echo $one['xxdm']. $one['xxmc'] . $one['dlwz'];
 	  echo '<br> ';
 }

	
echo $universities2['neusoft']['dlwz'];

 ?>
